home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / taropyon / silib / silib.lzh / PRG / SDKFS / SDKFS.H < prev    next >
C/C++ Source or Header  |  1994-08-31  |  3KB  |  87 lines

  1. /*************************************************************************
  2. *    âtâ@âCâïâZâîâNâ^ì\æóæ╠
  3. *************************************************************************/
  4.  
  5. #ifndef    _SDKFS_H
  6. #define    _SDKFS_H
  7.  
  8. #include    <dos.h>
  9. #include    <sidefs.h>
  10. #include    <siev.h>
  11. #include    <sisbar.h>
  12. #include    <SDK/blkdlg.h>
  13.  
  14. #define    _SDKFS_VER    "2.01b"
  15.  
  16. typedef    struct _fndat_t
  17. {
  18.     struct _fndat_t    *next;
  19.     struct    find_t    buf;    /* look <dos.h>    */
  20.     int                no;
  21.     int                flag;
  22.     int                mark;
  23. } FNDAT_T;
  24.  
  25. typedef    struct
  26. {
  27.     unsigned    att;                /* æ«É½                                */
  28.     unsigned    stt;                /* âXâeü[â^âX                        */
  29.     int            err;                /* âGâëü[                            */
  30.  
  31.     BLKDLG_T    *dlg;                /* â_âCâAâìâOùpâÅü[âN                */
  32.     FRAME_T        fr;
  33.     FRAME_T        frDrv;                /* âhâëâCâuâZâîâNâ^ÿg                */
  34.     FRAME_T        frFl;                /* âtâ@âCâïò\Īÿg                    */
  35.     EV_T        *ev;                /* âCâxâôâgùp                        */
  36.     EV_T        *evDrv;                /* âhâëâCâuæIæ≡ùpâCâxâôâg            */
  37.     EV_T        *evFn;                /* âtâ@âCâïû╝                        */
  38.     char        *title;                /* â^âCâgâï                            */
  39.     SB_T        *sb;                /* âXâNâìü[âïâoü[ùp                    */
  40.  
  41.     char        buf[256];            /* ôⁿù═âtâ@âCâïû╝                    */
  42.  
  43.     int            drv;                /* âhâëâCâu [A:0 [B:1                */
  44.     char        whare[256];            /* âfâBâîâNâgâè                        */
  45.     char        *wild;                /* âÅâCâïâhâJü[âh                    */
  46.     int            sort;                /* â\ü[âgâ^âCâv                        */
  47.  
  48.     int            numFn;                /* âtâ@âCâïÉöüiâfâBâCâîâNâèéαè▄é▐üj    */
  49.     FNDAT_T        *fnTop;                /* âfâBâîâNâgâèâoâbâtâ@ɵô¬            */
  50.     int            numMat;                /* â}âbâ`é╡é╜âtâ@âCâïÉö                */
  51.     FNDAT_T        **fnMat;            /* â}âbâ`é╡é╜âtâ@âCâïû╝                */
  52.     int            posDspTop;            /* ò\Īé╖éΘâtâ@âCâïû╝é╠ɵô¬            */
  53.     int            posMark;
  54. } FILESEL_T;
  55.  
  56. #define    FSCD_CRTSAVE    (0x20)    /* âJâîâôâgâfâBâîâNâgâèÅ≤æ╘ò█æ╢    */
  57.  
  58. extern FILESEL_T   *FileSel_open(void);
  59. extern void            FileSel_close( FILESEL_T *fs );
  60. extern int            FileSel_start( FILESEL_T *fs );
  61. extern int            FileSel_setTitle( FILESEL_T *fs, CONST char *form, ... );
  62. extern int            FileSel_setWild( FILESEL_T *fs, CONST char *wild );
  63. extern char           *FileSel_getFn( FILESEL_T *fs );
  64.  
  65. #define    FSATT_DIR    (0x10)
  66. #define    FSATT_VOL    (0x08)
  67. #define    FSATT_SYS    (0x04)
  68. #define    FSATT_ARC    (0x02)
  69. #define    FSATT_RO    (0x01)
  70.  
  71. #define    FSSORT_OFF        (0x00)        /* â\ü[âgé╚é╡        */
  72. #define    FSSORT_FILE        (0x01)        /* âtâ@âCâïû╝        */
  73. #define    FSSORT_SUB        (0x02)        /* ègÆúÄq            */
  74. #define    FSSORT_DATE        (0x03)        /* ô·òt                */
  75. #define    FSSORT_SIZE        (0x04)        /* âTâCâY            */
  76. #define    FSSORT_RVS        (0x80)        /* Å╕Åçü^ì~Åç        */
  77. #define    FSSORT_DIRTOP    (0x00)        /* âfâBâîâNâgâèɵô¬    */
  78. #define    FSSORT_DIRLAST    (0x20)        /* âfâBâîâNâgâèì┼îπ    */
  79. #define    FSSORT_DIROFF    (0x40)        /* âfâBâîâNâgâè        */
  80. #define    FSSORT_DIRBIT    (FSSORT_DIRLAST|FSSORT_DIROFF)
  81.  
  82. #define    FS_ISSORT_DIRTOP(_sort)        (((_sort)&FSSORT_DIRBIT) == FSSORT_DIRTOP)
  83. #define    FS_ISSORT_DIRLAST(_sort)    (((_sort)&FSSORT_DIRBIT) == FSSORT_DIRLAST)
  84. #define    FS_ISSORT_DIROFF(_sort)        (((_sort)&FSSORT_DIRBIT) == FSSORT_DIROFF)
  85.  
  86. #endif
  87.